home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Ss-Sz / Summarizer.cpt / Summarizer 1.3 / background_2737.txt < prev    next >
Encoding:
Text File  |  1987-12-25  |  15.0 KB  |  657 lines

  1. -- background: 2737 from stack: in.3
  2. -- bmap block id: 3719
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: BlankTopicBkgnd
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=0 top=1 right=16 bottom=17
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Quit
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if short name of this card is "NtTmplt" then exit mouseup
  23.   hide tool window
  24.   answer "Perhaps you accidently pressed Quit?" with "Yes I did" or "No I didn't"
  25.   if it is "No I didn't" then domenu "Quit Hypercard"
  26. end mouseUp
  27.  
  28.  
  29.  
  30.  
  31. -- part 9 (field)
  32. -- low flags: 01
  33. -- high flags: 0000
  34. -- rect: left=19 top=0 right=17 bottom=459
  35. -- title width / last selected line: 0
  36. -- icon id / first selected line: 0 / 0
  37. -- text alignment: 1
  38. -- font id: 3
  39. -- text size: 12
  40. -- style flags: 256
  41. -- line height: 16
  42. -- part name: HeaderFld
  43.  
  44.  
  45. -- part 31 (button)
  46. -- low flags: 00
  47. -- high flags: 0000
  48. -- rect: left=0 top=19 right=33 bottom=17
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 0 / 0
  51. -- text alignment: 1
  52. -- font id: 0
  53. -- text size: 12
  54. -- style flags: 0
  55. -- line height: 16
  56. -- part name: Chapter List
  57. ----- HyperTalk script -----
  58. on mouseUp
  59.   if short name of this card is "NtTmplt" then exit mouseup
  60.   go to card "ChptLstCrd"
  61. end mouseUp
  62.  
  63.  
  64.  
  65.  
  66. -- part 32 (button)
  67. -- low flags: 00
  68. -- high flags: 0000
  69. -- rect: left=0 top=36 right=50 bottom=17
  70. -- title width / last selected line: 0
  71. -- icon id / first selected line: 0 / 0
  72. -- text alignment: 1
  73. -- font id: 0
  74. -- text size: 12
  75. -- style flags: 0
  76. -- line height: 16
  77. -- part name: Topic List
  78. ----- HyperTalk script -----
  79. on mouseUp
  80.   if short name of this card is "NtTmplt" then exit mouseup
  81.   global Chapt
  82.   go to card Chapt
  83. end mouseUp
  84.  
  85.  
  86.  
  87.  
  88. -- part 30 (button)
  89. -- low flags: 00
  90. -- high flags: 0000
  91. -- rect: left=0 top=53 right=68 bottom=17
  92. -- title width / last selected line: 0
  93. -- icon id / first selected line: 0 / 0
  94. -- text alignment: 1
  95. -- font id: 0
  96. -- text size: 12
  97. -- style flags: 0
  98. -- line height: 16
  99. -- part name: Delete Page
  100. ----- HyperTalk script -----
  101. on mouseUp
  102.   if short name of this card is "NtTmplt" then exit mouseup
  103.   if not(short name of this card is "@") then
  104.     answer "Use ‚ÄòDelete‚Äô to delete ‚Äòtable of contents page‚Äô"
  105.     exit mouseup
  106.   end if
  107.   answer "About to Delete the current page..." with "Cancel" or "OK"
  108.   if it is "Cancel" then exit mouseup
  109.   if short name of this card is "@" then
  110.     set cursor to 4
  111.     set lockscreen to "true"
  112.     domenu "delete card"
  113.     put short name of this card into RCard
  114.     if RCard is "@" then
  115.     else
  116.       go to prev card
  117.       choose button tool
  118.       click at loc of button "NxtPg"
  119.       domenu "clear button"
  120.       choose browse tool
  121.     end if
  122.     if the number of card fields is 1
  123.     then put IBeam("TxtFld") into dummy
  124.     flash 2
  125.   end if
  126. end mouseUp
  127.  
  128.  
  129.  
  130. -- part 33 (button)
  131. -- low flags: 00
  132. -- high flags: 0000
  133. -- rect: left=0 top=69 right=84 bottom=17
  134. -- title width / last selected line: 0
  135. -- icon id / first selected line: 0 / 0
  136. -- text alignment: 1
  137. -- font id: 0
  138. -- text size: 12
  139. -- style flags: 0
  140. -- line height: 16
  141. -- part name: New Page
  142. ----- HyperTalk script -----
  143. on mouseUp
  144.   if short name of this card is "NtTmplt" then exit mouseup
  145.   answer "Insert new page following this one?" with "Cancel" or "OK"
  146.   if it is "Cancel" then exit mouseup
  147.   set cursor to 4
  148.   MakePage
  149.   flash 2
  150. end mouseUp
  151.  
  152.  
  153.  
  154. -- part 42 (button)
  155. -- low flags: 00
  156. -- high flags: 0000
  157. -- rect: left=0 top=87 right=102 bottom=17
  158. -- title width / last selected line: 0
  159. -- icon id / first selected line: 0 / 0
  160. -- text alignment: 1
  161. -- font id: 0
  162. -- text size: 12
  163. -- style flags: 0
  164. -- line height: 16
  165. -- part name: GetPaintDoc
  166. ----- HyperTalk script -----
  167. on mouseUp
  168.   if the number of card fields is 1 then
  169.     beep 1
  170.     answer "About to import Paint file - A text field exits." with "Cancel" or "OK"
  171.     if it is "Cancel" then
  172.       exit mouseup
  173.     end if
  174.   else
  175.     answer "About to import Paint file" with "Cancel" or "OK"
  176.     if it is "Cancel" then exit mouseup
  177.   end if
  178.   put "Choose a Paint file to import."
  179.   wait 2 seconds
  180.   choose Text Tool
  181.   domenu "Import Paint..."
  182.   domenu "Select All"
  183.   domenu "Transparent"
  184.   choose browse tool
  185.   choose select tool
  186.   show tool window
  187. end mouseUp
  188.  
  189.  
  190.  
  191. -- part 46 (button)
  192. -- low flags: 00
  193. -- high flags: 0000
  194. -- rect: left=0 top=103 right=119 bottom=17
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 0 / 0
  197. -- text alignment: 1
  198. -- font id: 0
  199. -- text size: 12
  200. -- style flags: 0
  201. -- line height: 16
  202. -- part name: MakePaintDoc
  203. ----- HyperTalk script -----
  204. on mouseUp
  205.   answer "Export this window to a MacPaint file?" with "Yes" or "Cancel"
  206.   if it is "Yes" then
  207.     choose text tool
  208.     domenu "Export Paint..."
  209.     choose browse tool
  210.   end if
  211. end mouseUp
  212.  
  213.  
  214.  
  215. -- part 45 (button)
  216. -- low flags: 00
  217. -- high flags: 0000
  218. -- rect: left=0 top=120 right=136 bottom=17
  219. -- title width / last selected line: 0
  220. -- icon id / first selected line: 0 / 0
  221. -- text alignment: 1
  222. -- font id: 0
  223. -- text size: 12
  224. -- style flags: 0
  225. -- line height: 16
  226. -- part name: ShowHide Tools
  227. ----- HyperTalk script -----
  228. on mouseUp
  229.   get visible of tool window
  230.   if it is false then
  231.     show tool window
  232.   else
  233.     hide tool window
  234.   end if
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 44 (button)
  240. -- low flags: 00
  241. -- high flags: 0000
  242. -- rect: left=0 top=291 right=306 bottom=17
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 0 / 0
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: PrintOptions
  251. ----- HyperTalk script -----
  252. on mouseUp
  253.   if short name of this card is "NtTmplt" then exit mouseup
  254.   answer "Choose a Print Option" with "This Card" or "All Cards" or "Cancel"
  255.   put short name of this card into WasHere
  256.   if it is "Cancel" then exit mouseup
  257.   if it is "All Cards" then
  258.     set lockscreen to true
  259.     go to card "TpcLstTmplt"
  260.     repeat while true
  261.       go to next card
  262.       if short name of this card is "NtTmplt" then
  263.         go to card WasHere
  264.         exit mouseup
  265.       end if
  266.       domenu "print card"
  267.     end repeat
  268.     exit mouseup
  269.   end if
  270.   if it is "This Card"
  271.   then domenu "print card"
  272. end mouseUp
  273.  
  274.  
  275.  
  276. -- part 38 (button)
  277. -- low flags: 00
  278. -- high flags: 0000
  279. -- rect: left=0 top=155 right=170 bottom=17
  280. -- title width / last selected line: 0
  281. -- icon id / first selected line: 0 / 0
  282. -- text alignment: 1
  283. -- font id: 0
  284. -- text size: 12
  285. -- style flags: 0
  286. -- line height: 16
  287. -- part name: FontSpacing
  288. ----- HyperTalk script -----
  289. on mouseUp
  290.   if the number of card fields is 0 then
  291.     answer "Can't change font spacing - no field!"
  292.     exit mouseup
  293.   else
  294.     answer "Choose a Text Font Style" with "Mono-spaced" or "Proportional" or "Cancel"
  295.     if it is "Mono-spaced" then
  296.       set textFont of card field "TxtFld" to Monaco
  297.       put IBeam("TxtFld") into dummy
  298.     end if
  299.     if it is "Proportional"
  300.     then set textFont of card field "TxtFld" to Geneva
  301.     if it is "Cancel" then
  302.       put IBeam("TxtFld") into dummy
  303.       exit mouseup
  304.     end if
  305.     if the number of card fields is 1
  306.     then put IBeam("TxtFld") into dummy
  307.   end if
  308. end mouseUp
  309.  
  310.  
  311.  
  312. -- part 35 (button)
  313. -- low flags: 00
  314. -- high flags: 0000
  315. -- rect: left=0 top=171 right=187 bottom=17
  316. -- title width / last selected line: 0
  317. -- icon id / first selected line: 0 / 0
  318. -- text alignment: 1
  319. -- font id: 0
  320. -- text size: 12
  321. -- style flags: 0
  322. -- line height: 16
  323. -- part name: ChangeWindUse
  324. ----- HyperTalk script -----
  325. on mouseUp
  326.   global WindType
  327.  
  328.   if the number of card fields is 0 then
  329.     put "Create a new text field?" into prompt
  330.     answer prompt with "Cancel" or "OK"
  331.     if it is "Cancel" then exit mouseup
  332.   end if
  333.  
  334.   put "Set Text Field Format to..." into prompt
  335.   answer prompt with "Scroll" or "Cancel" or "Reg Text"
  336.   if it is "Cancel" then
  337.     put IBeam("TxtFld") into dummy
  338.     exit mouseup
  339.   else
  340.     put it into WindType
  341.   end if
  342.  
  343.  
  344.   set lockscreen to "true"
  345.   if WindType is "Scroll" or it is "Reg Text" then
  346.     if the number of card fields is 0 then
  347.       MakeField
  348.       flash 2
  349.     else
  350.       get style of card field "TxtFld"
  351.       if it is "transparent" and WindType is "Scroll" then set Style of card field "Txtfld" to scrolling
  352.       if it is "scrolling" and WindType is "Reg Text" then
  353.         answer "Any text beyond the window will be Hidden!" with "Go Ahead" or "Cancel"
  354.         if it is "go ahead" then
  355.           set Style of card field "Txtfld" to transparent
  356.         else
  357.           --  Cancel
  358.         end if
  359.       end if
  360.       put IBeam("TxtFld") into dummy
  361.     end if
  362.   end if
  363. end mouseUp
  364.  
  365.  
  366.  
  367. -- part 39 (button)
  368. -- low flags: 00
  369. -- high flags: 0000
  370. -- rect: left=0 top=188 right=204 bottom=17
  371. -- title width / last selected line: 0
  372. -- icon id / first selected line: 0 / 0
  373. -- text alignment: 1
  374. -- font id: 0
  375. -- text size: 12
  376. -- style flags: 0
  377. -- line height: 16
  378. -- part name: DeleteFld
  379. ----- HyperTalk script -----
  380. on mouseUp
  381.   if the number of card fields is 0 then
  382.     answer "There is no text field to delete!"
  383.     exit mouseup
  384.   else
  385.     answer "Delete this text field?" with "Cancel" or "OK"
  386.     if it is "OK" then
  387.       set lockscreen to "true"
  388.       if the number of words in card field "TxtFld" > 0 then
  389.         answer "Delete a field containing text?" with "Cancel" or "OK"
  390.         if it is "Cancel" then exit mouseup
  391.       end if
  392.       choose field tool
  393.       click at loc of card field "Txtfld"
  394.       domenu "clear field"
  395.       choose browse tool
  396.       flash 2
  397.     end if
  398.   end if
  399. end mouseUp
  400.  
  401.  
  402.  
  403. -- part 43 (button)
  404. -- low flags: 00
  405. -- high flags: 0000
  406. -- rect: left=0 top=205 right=221 bottom=17
  407. -- title width / last selected line: 0
  408. -- icon id / first selected line: 0 / 0
  409. -- text alignment: 1
  410. -- font id: 0
  411. -- text size: 12
  412. -- style flags: 0
  413. -- line height: 16
  414. -- part name: TextFile
  415. ----- HyperTalk script -----
  416. on mouseUp
  417.   put short name of this card into WasHere
  418.   answer "Send all text fields to textfile?" with "Cancel" or "OK"
  419.   if it is empty then exit mouseup
  420.   if it is "OK" then
  421.     get long name of this stack
  422.     delete first word of it
  423.     delete first char of it
  424.     delete last char of it
  425.     put it & ".txt" into prompt
  426.     beep 1
  427.     put "You can change volume,fldr, or stack name from default"
  428.     show msg
  429.     ask "Export text to what file?" with prompt
  430.     if it is empty then exit mouseup
  431.     beep 1
  432.     put "Please wait... if sound on,  2 beeps signal finish"
  433.     put it into filename
  434.     set lockscreen to true
  435.     open file fileName
  436.     go to card "TpcLstTmplt"
  437.     repeat while true
  438.       go to next card
  439.       if short name of this card is "NtTmplt" then
  440.         close file fileName
  441.         hide msg
  442.         go to card WasHere
  443.         beep 2
  444.         exit mouseup
  445.       end if
  446.       if the number of card fields is 1 then
  447.         write card field "txtfld" to file fileName
  448.         if short name of this card is "@" then
  449.           write return to file fileName
  450.         else
  451.           write return & return to file fileName
  452.         end if
  453.       end if
  454.     end repeat
  455.   end if
  456. end mouseUp
  457.  
  458.  
  459.  
  460. -- part 49 (button)
  461. -- low flags: 00
  462. -- high flags: 0000
  463. -- rect: left=0 top=256 right=271 bottom=17
  464. -- title width / last selected line: 0
  465. -- icon id / first selected line: 0 / 0
  466. -- text alignment: 1
  467. -- font id: 0
  468. -- text size: 12
  469. -- style flags: 0
  470. -- line height: 16
  471. -- part name: PasteBtn
  472. ----- HyperTalk script -----
  473. on mouseup
  474.   global ptype
  475.   type "v" with commandkey
  476.   if ptype is "paste picture"
  477.   then show tool window
  478. end mouseup
  479.  
  480.  
  481. -- part 50 (button)
  482. -- low flags: 00
  483. -- high flags: 0000
  484. -- rect: left=0 top=273 right=289 bottom=17
  485. -- title width / last selected line: 0
  486. -- icon id / first selected line: 0 / 0
  487. -- text alignment: 1
  488. -- font id: 0
  489. -- text size: 12
  490. -- style flags: 0
  491. -- line height: 16
  492. -- part name: ScrapBtn
  493. ----- HyperTalk script -----
  494. on mouseUp
  495.   domenu "Scrapbook"
  496. end mouseUp
  497.  
  498.  
  499.  
  500. -- part 51 (button)
  501. -- low flags: 00
  502. -- high flags: 0000
  503. -- rect: left=0 top=137 right=152 bottom=17
  504. -- title width / last selected line: 0
  505. -- icon id / first selected line: 0 / 0
  506. -- text alignment: 1
  507. -- font id: 0
  508. -- text size: 12
  509. -- style flags: 0
  510. -- line height: 16
  511. -- part name: SurSelect
  512. ----- HyperTalk script -----
  513. on mouseUp
  514.   global ptype,Xit
  515.   put false into Xit
  516.   answer "About to Cut Pict to Clipboard..." with "Cancel" or "OK"
  517.   if it is "Cancel" then exit mouseup
  518.   choose select tool
  519.   drag from 0,0 to 512,342 with commandKey
  520.   type "x" with commandKey
  521.   if Xit then exit mouseup
  522.   choose browse tool
  523. end mouseUp
  524.  
  525.  
  526.  
  527. -- part 52 (button)
  528. -- low flags: 00
  529. -- high flags: 0000
  530. -- rect: left=0 top=222 right=238 bottom=17
  531. -- title width / last selected line: 0
  532. -- icon id / first selected line: 0 / 0
  533. -- text alignment: 1
  534. -- font id: 0
  535. -- text size: 12
  536. -- style flags: 0
  537. -- line height: 16
  538. -- part name: TxtImport
  539. ----- HyperTalk script -----
  540. on mouseUp
  541.   global WindType, Xit, fileName
  542.   if the number of card fields is 0 then
  543.     answer "There is no field to import text to!" with "OK"
  544.     exit mouseup
  545.   end if
  546.  
  547.   get the long name of this stack
  548.   delete first word of it
  549.   delete first char of it
  550.   delete last char of it
  551.   put the number of chars in it into endpos
  552.   put offset(":", it) into startpos
  553.   put empty into char startpos to endpos of it
  554.   put it into volNam
  555.  
  556.   put volNam & ":File Name Goes Here" into prompt
  557.   ask "Import text from what file?" with prompt
  558.   if it is empty then exit mouseup
  559.   put it into fileName
  560.   open file fileName
  561.  
  562.   SendTxtToFld
  563.   if Xit then
  564.     close file fileName
  565.     hide msg
  566.     exit mouseup
  567.   end if
  568.  
  569.   repeat while true
  570.     answer "Do you want to read more to this page?" with "Finished" or "Read More" or "Next Page"
  571.  
  572.     if it is "Finished" then
  573.       close file fileName
  574.       hide msg
  575.       exit mouseup
  576.     end if
  577.  
  578.     if it is "Next Page" then
  579.       MakePage
  580.       put "Set Text Field Format to..." into prompt
  581.       answer prompt with "Scroll" or "Reg Text"
  582.       put it into WindType
  583.       MakeField
  584.       set lockscreen to false
  585.     end if
  586.  
  587.     SendTxtToFld
  588.     if Xit then
  589.       close file fileName
  590.       hide msg
  591.       exit mouseup
  592.     end if
  593.   end repeat
  594. end mouseUp
  595.  
  596.  
  597.  
  598. -- part 53 (button)
  599. -- low flags: 00
  600. -- high flags: 0000
  601. -- rect: left=0 top=239 right=255 bottom=17
  602. -- title width / last selected line: 0
  603. -- icon id / first selected line: 0 / 0
  604. -- text alignment: 1
  605. -- font id: 0
  606. -- text size: 12
  607. -- style flags: 0
  608. -- line height: 16
  609. -- part name: FtoC
  610. ----- HyperTalk script -----
  611. on mouseUp
  612.   if the selection is empty then
  613.     answer "You must select text to copy!" with "OK"
  614.     exit mouseup
  615.   end if
  616.   type "c" with commandkey
  617. end mouseUp
  618.  
  619.  
  620.  
  621. -- part 54 (button)
  622. -- low flags: 00
  623. -- high flags: 0000
  624. -- rect: left=0 top=308 right=322 bottom=17
  625. -- title width / last selected line: 0
  626. -- icon id / first selected line: 0 / 0
  627. -- text alignment: 1
  628. -- font id: 0
  629. -- text size: 12
  630. -- style flags: 0
  631. -- line height: 16
  632. -- part name: MenuBtn
  633. ----- HyperTalk script -----
  634. on mouseUp
  635.   type NumtoChar(32) with commandKey
  636. end mouseUp
  637.  
  638.  
  639.  
  640. -- part 55 (button)
  641. -- low flags: 00
  642. -- high flags: 0000
  643. -- rect: left=0 top=325 right=342 bottom=17
  644. -- title width / last selected line: 0
  645. -- icon id / first selected line: 0 / 0
  646. -- text alignment: 1
  647. -- font id: 0
  648. -- text size: 12
  649. -- style flags: 0
  650. -- line height: 16
  651. -- part name: BkgndBtn
  652. ----- HyperTalk script -----
  653. on mouseUp
  654.   type "b" with commandKey
  655. end mouseUp
  656.  
  657.